package cn.huijielong.modules.cm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.huijielong.modules.cm.dao.ZoneDao;
import cn.huijielong.modules.cm.entity.ZoneEntity;
import cn.huijielong.modules.cm.service.ZoneService;
import cn.huijielong.modules.sys.service.impl.SimpleServiceImpl;



@Service("zoneService")
public class ZoneServiceImpl extends SimpleServiceImpl implements ZoneService {
	@Autowired
	private ZoneDao zoneDao;

	@Override
	public List<ZoneEntity> queryProvinces() {
		return zoneDao.queryProvinces();
	}

	@Override
	public List<ZoneEntity> queryCities(String provinceCode) {
		return zoneDao.queryCities(provinceCode);
	}

	@Override
	public List<ZoneEntity> queryCounties(String cityCode) {
		return zoneDao.queryCounties(cityCode);
	}

	@Override
	public List<ZoneEntity> queryTowns(String countyCode) {
		return zoneDao.queryTowns(countyCode);
	}
	
}
